# $Id$
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=kdiff3
pkgver=0.9.98
pkgrel=6
pkgdesc="A KDE file comparator/merge tool"
arch=('i686' 'x86_64')
url="http://kdiff3.sourceforge.net/"
license=('GPL')
depends=('kdebase-runtime')
makedepends=('cmake' 'automoc4' 'docbook-xml')
source=(http://downloads.sourceforge.net/sourceforge/kdiff3/${pkgname}-${pkgver}.tar.gz)
sha1sums=('1390b4ca9c58316de49cb0aabb433f14ebf2dc3f')

build() {
  mkdir ${pkgname}-${pkgver}/release
  cd ${pkgname}-${pkgver}/release
  cmake .. -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd ${pkgname}-${pkgver}/release
  make DESTDIR="${pkgdir}" install
}
